#include "socket_rlimit.h"

/* Set open file description count to max */
void set_socket_rlimit(void)
{
	struct rlimit limit = {0};

	getrlimit(RLIMIT_NOFILE, &limit );
	limit.rlim_cur = limit.rlim_max;
	setrlimit(RLIMIT_NOFILE, &limit );
	PARSE_LOG_INFO("set socket open fd max count to %d\n", limit.rlim_max);
}

